export default{
	state: {
		departments: []
	},
	mutations: {
		departmentSeletorReset (state) {
			state.departments = [];
		},
		departmentSeletorSet (state, data) {
			let items = [];
			data.forEach(v => {
				if (v.departmentId) {
					items.push(v);
				}
			});
			state.departments = items;
		}
	}

}